<?php
class GestionesPedagogicaHelper extends Helper{

   public function existe_gestion($bimestre, $year, $zona_id) {
        App::import('Model', 'GestionesPedagogica');
        $this->GestionesPedagogica = new GestionesPedagogica;
        $this->data = $this->GestionesPedagogica->find('first', array('fields'=>'GestionesPedagogica.id', 
        												   'conditions'=>array('GestionesPedagogica.bimestre'=>$year."-".$bimestre, 
        												   					   'GestionesPedagogica.zona_id'=>$zona_id)));        
        return empty($this->data);
   }

} 
?>